# name : BE analysis using proc mixed with Replicated Crossover Designs
# key : be.mixed.repeated.
# contributor: Shuguang Sun
# --
proc mixed data=${1:dtin};
class period seq drug subject;
model lnaval = period seq drug / ddfm=satterth;
random drug / type=fa0(2) sub=subject g solution;
repeated / grp=drug sub=subject;
estimate 't vs. r' drug 1 -1 / cl alpha=0.1;
run;
